<?php

/**
 * 贡献榜
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/20
 * Time: 下午12:04
 */
class Rank extends MY_Api_Controller
{
    public function index()
    {
        $uid    = $this->uid;
        $by_uid = (int)$this->input->get_post('by_uid');
        $type   = (int)$this->input->get_post('type');
        $page   = (int)$this->input->get_post('page');
        $limit  = (int)$this->input->get_post('limit');


        $this->load->service('common/service_common_rank');
        $data = $this->service_common_rank->index($by_uid, $type, $page, $limit);


        $this->json_output($data['data'], $data['status']);
    }
}